﻿/*
 * @Autor: PK
 * @Date: 2021-03-31 13:34:14
 * @Description: 资源的抽象类，用来保存DataTable等
 */

using System.Data;

namespace ShkSimulation.core.dao.input.resource {
    public abstract class AbstractDataTableResource : Resource {
        
        public readonly string description = "将DataTable作为保存最终数据的结构，" +
                                             "用于Station、Road、Environment等的初始化";

        public abstract string PathInfo { get; }
        
        public ResourceType ResourceType { get; protected set; }

        protected DataTable dataTable;

        public string Uniquekey => uniqueKey;
        
        protected string uniqueKey;
        
        public string GetDescription() {
            return description;
        }

        public DataTable GetDataTable() {
            return dataTable;
        }

    }
}
